package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domain.db.TestResult;
import org.apache.ibatis.annotations.Select;

public interface TestResultMapper extends BaseMapper<TestResult> {

    @Select("select id from tb_test_result where #{score} >= min and #{score} <= max")
    Integer findTestResult(Integer score);

}
